package com.fxm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fxm.domain.Rule;
import com.fxm.returns.RespEntity;
import com.fxm.returns.RespTable;
import com.fxm.vo.param.RuleParam;
import com.fxm.vo.result.RuleResult;

import java.util.List;

/**
 * <p>
 * 答题规则表 服务类
 * </p>
 *
 * @author fxm
 * @since 2021-02-22
 */
public interface RuleService extends IService<Rule> {
    /**
     * 答题规则列表
     * @param page
     * @param limit
     * @param username
     * @return
     */
    RespTable<List<RuleResult>> ruleList(Integer page, Integer limit, String username);

    /**
     * 编辑答题规则
     * @param ruleParam
     * @return
     */
    RespEntity updateRule(RuleParam ruleParam);
}
